#ifndef PAINTINGENGINE_H
#define PAINTINGENGINE_H

#include "bmiManager.h"
#include <common/settings.h>
#include <QPixmap>
#include <QWidget>
#include <QStandardItemModel>


class PaintingPixmap : public QObject
{
    Q_OBJECT
    public :
       PaintingPixmap();
       ~PaintingPixmap();
       void setDatas(QStandardItemModel * modelofpatientdatas,QString & sexe,int month);
       void paint();
       QPixmap getPixmap();
       void setRect(float x, float y);
       void setPixmapZoom(float zoom);
       float getBmi(double y,int zoom);
    private :
       QString m_sex;
       int m_ageInMonths;
       settings * m_set;
       BmiManager * m_bmiManager;
       QPixmap m_pixmap;
       int m_paintingLabelWidht;
       int m_paintingLabelHeight;
       float m_zoom;
       QStandardItemModel * m_modelofpatientdatas;
       int m_slidermonth;
       int m_lineswidhth;
       int m_adjust_vertical_line;
};


#endif


